home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / powerb5.zip / P5WPR006.TIP < prev    next >
Text File  |  1993-06-01  |  2KB  |  67 lines

  1. I wrote a variation of Bruce Purcell's WordPerfect 5.1 save
  2. macro, shown in June's Star-Dot-Star, that avoids the
  3. unneeded error message. Like his, mine prompts you for a
  4. file name if you haven't saved the document and otherwise
  5. saves it without prompting. The key to avoiding the error
  6. message is to test the Name system variable, which contains
  7. the file name, to determine if the document has already been
  8. saved.
  9.  
  10. Robert J. Sandler
  11. New Milford, New Jersey
  12.  
  13. Editor's Note: Mr. Sandler's macro was the first of nearly
  14. 100 responses suggesting improvements to the original. Most
  15. of the submissions took the same approach as the one below;
  16. they used {SYSTEM}Name to determine if the file needed a
  17. name.
  18.  
  19. None, however, offered a clean solution to a different
  20. problem pointed out by some readers: When WordPerfect was
  21. set to use long document names, the macro would fail (the
  22. prompts from the Save command are different when you use
  23. long names). After querying several of WordPerfect's tech
  24. support experts, I was able to write a macro that checked
  25. for long file names by bringing up a file list that's hidden
  26. by a {DISPLAY OFF} command. My macro, also shown below,
  27. won't work with WordPerfect 5.1 revisions dated earlier than
  28. 6/29/90, but if you sometimes use long file names, you'll
  29. find it useful.
  30.  
  31. Since these macros use macro-specific commands, you can't
  32. create either of them simply by recording keystrokes; you
  33. must use the macro editor. So, to save you the trouble of
  34. dealing with this quirky editor, we've included the macro
  35. that handles long document names on your PowerBase *.*
  36. Volume 5 diskette as P5WPR\ALTS.WPM.
  37.  
  38. Robert Sandler's improved Quick Save macro:
  39.  
  40. {IF}"{SYSTEM}Name~"=""~
  41.    {Save}
  42. {ELSE}
  43.    {Save}{Enter}y
  44. {END IF}
  45.  
  46. A further improved macro which handles long document names:
  47.  
  48. {IF}"{SYSTEM}Name~"=""~
  49.    {Save}
  50. {ELSE}
  51.    {DISPLAY OFF}
  52.    {List}{Enter}{ASSIGN}Long~{SYSTEM}Entry~~{Exit}
  53.    {Save}{Enter}
  54.    {IF}"{VARIABLE}Long~"="."~
  55.       {Enter}{Enter}
  56.    {END IF}
  57.    y
  58. {END IF}
  59.  
  60.  
  61. Title: WordPerfect Quick Save Redux
  62. Category: WPR
  63. Issue Date: October, 1992
  64. Editor: Brett Glass
  65. Supplementary Files: P5WPR\ALTS.WPM
  66. Filename: P5WPR006.TIP
  67.